<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->
<title>wcsftime</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_000_010_527">&nbsp;</a>NAME</h4><blockquote>
wcsftime - convert date and time to a wide-character string
</blockquote><h4><a name = "tag_000_010_528">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

#include &lt;<a href="wchar.h.html">wchar.h</a>&gt;

size_t wcsftime(wchar_t *<i>wcs</i>, size_t <i>maxsize</i>, const wchar_t *<i>format</i>,
     const struct tm *<i>timptr</i>);
</code>
</pre>
</blockquote><h4><a name = "tag_000_010_529">&nbsp;</a>DESCRIPTION</h4><blockquote>
The
<i>wcsftime()</i>
function is equivalent to the
<i><a href="strftime.html">strftime()</a></i>
function, except that:
<ul>
<p>
<li>
The argument
<i>wcs</i>
points to the initial element of an array of wide-characters into
which the generated output is to be placed.
<p>
<li>
The argument
<i>maxsize</i>
indicates the maximum number of wide-characters to be placed in the
output array.
<p>
<li>
The argument
<i>format</i>
is a wide-character string and the conversion specifications are 
replaced by corresponding sequences of wide-characters.
<p>
<li>
The return value indicates the number of wide-characters placed in the
output array.
<p>
</ul>
<p>
If copying takes place between objects that overlap,
the behaviour is undefined.
</blockquote><h4><a name = "tag_000_010_530">&nbsp;</a>RETURN VALUE</h4><blockquote>
If the total number of resulting wide-character
codes including the terminating null wide-character code is no more than
<i>maxsize</i>,
<i>wcsftime()</i>
returns the number of wide-character codes
placed into the array pointed to by
<i>wcs</i>,
not including the terminating null wide-character code.
Otherwise 0 is returned and the contents of the array are indeterminate.
If the function is not implemented,
<i>errno</i>
will be set to indicate the error.
</blockquote><h4><a name = "tag_000_010_531">&nbsp;</a>ERRORS</h4><blockquote>
No errors are defined.
</blockquote><h4><a name = "tag_000_010_532">&nbsp;</a>EXAMPLES</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_010_533">&nbsp;</a>APPLICATION USAGE</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_010_534">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_010_535">&nbsp;</a>SEE ALSO</h4><blockquote>
<i><a href="strftime.html">strftime()</a></i>,
<i><a href="wchar.h.html">&lt;wchar.h&gt;</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
